package com.woniuxy.education.entity;

import com.woniuxy.education.entity.dto.Tclass;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author author
 * @create 2021/4/1
 * 班级表
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Class {

    private int id;
    private String cname;
    private String headTeacher;//班主任
    private int rank;//排名
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//开班时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date div_class;//分科时间
    private int status;//文理分科
    private Tclass cls;
}
